package top.leix.springdemo.services;

import top.leix.springdemo.Res;
import top.leix.springdemo.pojo.ApplyLabStudent;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 16435
* @description 针对表【apply_lab_student(学生申请表)】的数据库操作Service
* @createDate 2024-04-21 22:23:42
*/
public interface ApplyLabStudentService extends IService<ApplyLabStudent> {

    Res addApplication(ApplyLabStudent applyLabStudent);

    Res updateApplication(ApplyLabStudent applyLabStudent);

    //管理员查所有
    Res queryAllStudentApply();
    //管理员查所有未审核学生的
    Res queryToCheckStudent();
    //更新进度
    Res updateApplicationStatus(Integer applyID, String status);
    //学生根据账号查未审核
    Res queryPending(String userAccount);

    Res queryHistory(String userAccount);
    Res queryOK(String userAccount);
    Res queryRejection(String userAccount);

    Res updateFinishedStatus(Integer applyID);

}
